package inits

import (
	"context"
	"fmt"
	"github.com/redis/go-redis/v9"
)

func RedisInit() {
	client := redis.NewClient(&redis.Options{
		Addr:     "14.103.138.43:6379",
		Password: "98de270e2f514d4e", // no password set
		DB:       0,                  // use default DB
	})

	pong, err := client.Ping(context.Background()).Result()
	fmt.Println(pong, err)
	// Output: PONG <nil>
}
